package com.company.base;

import com.company.core.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @program: planet-company
 * @description: 用户信息
 * @author: jyz
 * @create: 2019-04-01 17:14
 **/
@Data
@ApiModel(value="User",description="用户信息实体类")
public class User {
    @ApiModelProperty("公众号appId")
    private String appId;

    @ApiModelProperty("机构名称")
    private String companyName;

    @ApiModelProperty("手机号码")
    @NotNull(message = "手机号码不能为空",groups = {AddGroup.class})
    private String phone;

    @ApiModelProperty("密码")
    @NotNull(message = "密码不能为空",groups = {AddGroup.class})
    private String password;

    @ApiModelProperty("当前登录者的openId")
    private String openId;
}
